home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / cosmicfozmik.swf / scripts / frame_7 / PlaceObject2_219_120 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-09-27  |  389 b   |  19 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.shakeAmount > 0)
  3.    {
  4.       myColor.setTint(255,0,0,30);
  5.       _X = _X + random(10);
  6.       _X = _X - random(10);
  7.       _Y = _Y + random(10);
  8.       _Y = _Y - random(10);
  9.       _root.shakeAmount--;
  10.    }
  11.    if(_root.shakeAmount == 0)
  12.    {
  13.       myColor.setTint(0,0,0,0);
  14.       _X = 325;
  15.       _Y = 200;
  16.       _root.shakeAmount--;
  17.    }
  18. }
  19.